package com.go.dto;

import com.go.enums.ApiCode;
import lombok.Data;

@Data
public class JsonDtoWrapper<T> {

    private Integer code;
    private String msg;
    private Integer timeout;
    private T data;

    public void setCodeMsg(ApiCode ac) {
        this.code = ac.getCode();
        this.msg = ac.getMsg();
    }
}
